package cn.sherer.beans.weixin;

import java.util.ArrayList;
import java.util.List;

/**
 * 企业微信客服消息
 * https://developer.work.weixin.qq.com/document/path/94670
 */
public class WxKfMsg extends WxResult {
    private String next_cursor;
    private int has_more;
    private List<WxKfMsgItem> msg_list;

    public WxKfMsg() {
    }

    public WxKfMsg(int errcode, String errmsg) {
        super(errcode, errmsg);
    }

    public String getNext_cursor() {
        return next_cursor;
    }

    public void setNext_cursor(String next_cursor) {
        this.next_cursor = next_cursor;
    }

    public int getHas_more() {
        return has_more;
    }

    public void setHas_more(int has_more) {
        this.has_more = has_more;
    }

    public List<WxKfMsgItem> getMsg_list() {
        return msg_list == null ? new ArrayList<>() : msg_list;
    }

    public void setMsg_list(List<WxKfMsgItem> msg_list) {
        this.msg_list = msg_list;
    }

    @Override
    public String toString() {
        return "WxKfMsg{" + "errcode=" + this.getErrcode() + ", errmsg=" + this.getErrmsg() + ", next_cursor=" + next_cursor + ", has_more=" + has_more + ", msg_list=" + msg_list + "}";
    }
}
